package com.biz.primus.ms.oms.dao.po;

import com.biz.primus.ms.base.jpa.po.BaseEntity;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Index;
import javax.persistence.Table;
import java.time.LocalDateTime;

/**
 * @author yanweijin
 * @date 2017/10/25
 */
@Entity
@Table(name = "oms_payment_info", indexes = {
		@Index(name = "idx_order_id",columnList = "orderId"),
		@Index(name = "idx_trade_no",columnList = "tradeNo")
})
@Data
public class OrderPaymentInfo extends BaseEntity{

	/**
	 * 订单id
	 */
	private Long orderId;

	/**
	 * 支付方式,来自erp
	 */
	@Column(length = 30)
	private String paymentWay;

	/**
	 * 支付方式名称
	 */
	@Column(length = 50)
	private String paymentWayText;

	/**
	 * 支付备注信息(预留给工作人员)
	 */
	@Column(length = 200)
	private String remark;

	/**
	 * 支付金额
	 */
	private Integer paidAmount;

	/**
	 * 支付成功时间
	 */
	private LocalDateTime paidTime;

	@Column(length = 100)
	private String tradeNo;

}
